body {
	font: 1em/150% Arial, Helvetica, sans-serif;
}
a {
	color: #669;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
h1 {
	font: bold 36px/100% Arial, Helvetica, sans-serif;
}

/************************************************************************************
STRUCTURE
*************************************************************************************/
#pagewrap {
	width: 700px;
	margin: 20px auto;
}
#header {
	height: auto;
}
#content {
	clear: both;
}
#sidebar {
	width: 300px;
	float: right;
}
#footer {
	clear: both;
}
img { max-width:100%;
	}
	table {
    width: 100%;
    table-layout: fixed;
}
/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* for 980px or less */
@media screen and (max-width: 980px) {
	
	#pagewrap {
		width: 70%;
	}
	#sidebar {
		width: 30%;
	}
}
@media screen and (max-width: 800px) {
	#pagewrap {
		width: 88%;
	}
	#sidebar {
		width: 30%;
	}

}
/* for 700px or less */
@media screen and (max-width: 768px) {

	
	#header {
		height: auto;
	}
	#sidebar {
		width: auto;
		float: none;
	}

}

/* for 480px or less */
@media screen and (max-width: 480px) {

	#pagewrap {
		width: 100%;
	}
	#header {
		height: auto;
	}
	h1 {
		font-size: 24px;
	}
	#sidebar {
		display: none;
	}

}

/* border & guideline (you can ignore these) */
#content {
	background: #CCC;
}
#sidebar {
	background: #f0efef;
}
#header, #content, #sidebar {
	margin-bottom: 5px;
}
#pagewrap, #header, #content, #sidebar, #footer {
	border: solid 1px #ccc;
}